/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.hiddendanger.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@ApiModel(value = "隐患整改报告", description = "隐患整改报告实体类")
public class ReportItem {

    @ApiModelProperty(value = "报告id", name = "reportId", required = true)
    private String reportId;

    @ApiModelProperty(value = "隐患id", name = "hiddenDangerId", required = true)
    private String hiddenDangerId;

    @ApiModelProperty(value = "问题描述", name = "description")
    private String description;

    @ApiModelProperty(value = "整改措施", name = "correctiveMeasures")
    private String correctiveMeasures;

    @ApiModelProperty(value = "整改结果", name = "correctiveResult")
    private String correctiveResult;

    @ApiModelProperty(value = "计划时间", name = "planTime", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date planTime;

    @ApiModelProperty(value = "完成时间", name = "finishTime", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date finishTime;

    @ApiModelProperty(value = "整改前照片", name = "photosBeforeRectification")
    private String photosBeforeRectification;

    @ApiModelProperty(value = "整改后照片", name = "photosAfterRectification")
    private String photosAfterRectification;

    public String getReportId() {
        return reportId;
    }

    public void setReportId(String reportId) {
        this.reportId = reportId;
    }

    public String getHiddenDangerId() {
        return hiddenDangerId;
    }

    public void setHiddenDangerId(String hiddenDangerId) {
        this.hiddenDangerId = hiddenDangerId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCorrectiveMeasures() {
        return correctiveMeasures;
    }

    public void setCorrectiveMeasures(String correctiveMeasures) {
        this.correctiveMeasures = correctiveMeasures;
    }

    public Date getPlanTime() {
        return planTime;
    }

    public void setPlanTime(Date planTime) {
        this.planTime = planTime;
    }

    public Date getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }

    public String getPhotosBeforeRectification() {
        return photosBeforeRectification;
    }

    public void setPhotosBeforeRectification(String photosBeforeRectification) {
        this.photosBeforeRectification = photosBeforeRectification;
    }

    public String getPhotosAfterRectification() {
        return photosAfterRectification;
    }

    public void setPhotosAfterRectification(String photosAfterRectification) {
        this.photosAfterRectification = photosAfterRectification;
    }

    public String getCorrectiveResult() {
        return correctiveResult;
    }

    public void setCorrectiveResult(String correctiveResult) {
        this.correctiveResult = correctiveResult;
    }
}
